<?php

namespace app\teacher\controller\course;

use app\common\controller\Frontend;
use app\common\model\banxi\course\TeachingMaterial as TeachingMaterialModel;
use think\facade\Log;

/*
 * 教学材料
 * */
class TeachingMaterial extends Frontend
{
    protected array $noNeedLogin = [''];

    protected array $noNeedPermission = ['*'];

    public function initialize(): void
    {
        parent::initialize();
    }

    /*
     * 查询-教学材料列表
     * */
    public function listTeachingMaterial()
    {

        $TeachingMaterialModel = new TeachingMaterialModel();
        $list = $TeachingMaterialModel->order('id','desc')->select();

        $this->ok('操作成功',$list);
    }


}